<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html>
<head>
<base href="<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>易彩通管理平台</title>
<script type='text/javascript' src='js/jquery-1.4.2.min.js'></script>
<script type='text/javascript' src='js/jquery.validate.min.js'></script>
<script type='text/javascript' src='js/common.js'></script>
<link href="manage/manage.css" rel="stylesheet" type="text/css">
<link href="style/css.css" rel="stylesheet" type="text/css">
<script type="text/javascript"> 
    
    function deleteBisType(bisId)
	{
	 if(!confirm("您确定要删除该模板分类吗?"))
	 {
	  return;
	 }
	 document.location.href="bisType!delBisType.action?delId="+bisId;
	} 
	 //转至多少页码
	 function changePage(listId)
	 {
	  document.location.href="bisType!allBisTypeListByName.action?pageNo="+listId;
	 } 
	 
	 //编辑显示
	 function updateBisType(updateId)
	 {
	  var tdId="typeName"+updateId;
	  var tyId="edit"+updateId;
	  var cmId="user"+updateId;
	  
	  document.getElementById("updateBis").style.display="inline";
	  document.getElementById("addBis").style.display="none";
	  document.getElementById("updateName").value=document.getElementById(tdId).innerText;
	  
	  var comName=document.getElementById(cmId).value;
	  document.getElementById("listTypeId").value=document.getElementById(tyId).value;
	  document.getElementById("useUsertypeId").value=comName;
	  document.getElementById("upId").value=updateId;
	 }
	 
	 //取消编辑
	 function quxiaoBisGroupType()
	 {
	  document.getElementById("updateBis").style.display="none";
	 }
	 
	 //取消新增
	  function quxiaoAddBisGroupType()
	 {
	  document.getElementById("addBis").style.display="none";
	 }
	 
	 //新增加分组
	 function xinjiaBisGroupType()
	 {
	  document.getElementById("addBis").style.display="inline";
	  document.getElementById("updateBis").style.display="none";
	 }
	 
	 //保存编辑
	 function updateAddBisGroupType()
	 {
	  var bgName=document.getElementById("updateName").value;
	  if(bgName.trim()=="")
	  {
	    alert("请输入分类名称");
	    return false;
	  }
	  $("#updateForm").submit();
	 }
	 
	 //保存分组
	 function addBisGroupType()
	 {
	  var adName=document.getElementById("addName").value;
	  if(adName.trim()=="")
	  {
	    alert("请输入分组名称");
	    return false;
	  }
	  $("#addForm").submit();
	 }
	 
	 function serachBG()
	 {
	 $("#serachGroupTypeForm").submit();
	 }
</script>
</head>
<body style="margin:0px; text-align:center;font-size:12px;" bgcolor="#F1F1F1" >
<div id="top">
 	<!-- 头部-->
 	<%@include file="mainTop.jsp"%>
</div>
<div id="top2"></div>

<!-- 中间-->
<div id="main1">
<!-- 左边-->
 <%@include file="mainLeft.jsp"%>
 <div class="mainr2" style="background-color: #F1F1F1;text-align: center;" >
	欢迎进入易彩通管理平台
 </div>

</div>


</body>
</html>
